//
//  XMAlterViewController.m
//  XMKit
//
//  Created by Ce Liu on 2018/6/1.
//  Copyright © 2018年 ChenXiaoMing. All rights reserved.
//

#import "XMAlterViewController.h"

// View
#import "XMAlterView.h"

@interface XMAlterViewController ()

@property (nonatomic, strong) XMAlterView *alterView;

@end

@implementation XMAlterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.alterView show];
}

- (XMAlterView *)alterView {
    if (!_alterView) {
        _alterView = [[XMAlterView alloc] initWithItems:@[@"收藏",@"关注"] cancelItem:@"取消"];
    }
    return _alterView;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
